package com.bleeth.fx.component;

import javafx.scene.control.Menu;
import javafx.scene.control.MenuItem;
import lombok.Builder;
import lombok.Singular;

import java.util.List;


/**
 * @author Sakura
 * @version 1.0
 * @date 2021-11-13 22:17
 **/
@Builder
public class MMenu {

    @Singular
    private List<MenuItem> items;

    public Menu make() {
        Menu menu = new Menu();
        for (MenuItem item : items) {
            menu.getItems().add(item);
        }
        return menu;
    }


}
